 <?php


Class Basket_IndexView Extends Yapary_MVC_View
{
	const NEWLINE = "\n";


    public function defaultView (array $arrVar)
    {
    	// Auszugebende Daten im entsprechenden Registry-Eintrag speichern
    	$registry = Yapary_SingletonRegistry::getInstance();

    	/* @var $oSql Yapary_Db_Sql_Connector */
    	$oSql = $registry->oSql;
    	/* @var $model Index_IndexModel */
    	$model = $this->model; // Durch @var-Definition Eclipse Autocomplete nutzen!
    	/* @var $oHeader Yapary_Header_Header */
    	$oHeader = $registry->oHeader;
    	/* @var $oMetaTag Yapary_Header_MetaTag */
    	$oMetaTag = $registry->oMetaTag;
    	/* @var $oMainMenu Yapary_Menu_XmlMenu */
    	$oMainMenu = $registry->oMainMenu;
    	/* @var $oFooterMenu Yapary_Menu_XmlMenu */
    	$oFooterMenu = $registry->oFooterMenu;


    	// HTML Head Title
    	$oHeader->setTitle('Warenkorb');

    	// MainMenu
		$oMainMenu->expand('ACCOUNT_INDEX');
		$oMainMenu->setSelected(strtoupper(Yapary_SingletonRegistry::getInstance()->routeName));
		$oMainMenu->addAfter('BASKET', 'INSTALL_INDEX', 'install.php', 'Install/uninstall');

		// FooterMenu
		$oFooterMenu->setSelected(strtoupper(Yapary_SingletonRegistry::getInstance()->routeName));


		// Daten in globaler Registry speichern, um diese in "layout.phtml" ausgeben zu koennen
		$registry->header		= $this->partial->insert('headerData.phtml');
		$registry->mainMenu		= $oMainMenu->display(strtoupper(Yapary_SingletonRegistry::getInstance()->routeName));
		$registry->content		= $this->partial->insert('contentData.phtml');
    	$registry->footerMenu	= $oFooterMenu->display();
    }

}

?>